#pragma once
#include"Defaul.h"
class Animation;
class ExMessage;
extern Atlas* img_player_shadow;
extern Atlas* atlas_player_left;
extern Atlas* atlas_player_right;
class Player 
{
public:
	 Player();
	 void Move();
	 void Draw(int delta);
	 void ProcessEvent(const ExMessage& msg);
	 inline int GetPoint_X() const { return player_pos_x; }
	 inline int GetPoint_Y() const { return player_pos_y; }
	 inline int GetPlyer_Width() const { return PLAYER_WIDE; }
	 inline int GetPlyer_Height() const { return PLAYER_HEIGHT; }
private:
	const int PLAYER_WIDE = 80;
	const int PLAYER_HEIGHT = 80;
	const int SHADOW_WIDTH = 32;
	int PLAYER_SPEED = 5;

	Animation* img_shadow;
	Animation* anim_left_player;
	Animation* anim_right_player;
	int player_pos_x = 500;
	int player_pos_y = 500;

	bool is_move_up = false;
	bool is_move_down = false;
	bool is_move_right = false;
	bool is_move_left = false;

	bool facing_left = false;
};

